cmake_minimum_required(VERSION 3.27)

project(win_demo)

set(CMAKE_CXX_STANDARD 17)

add_executable(win_demo demo.cpp
        user.h
        user.cpp
        encrypt/xorencrypt.h
        db/file_parse.h
        db/database.h
)

# 设置连接依赖
target_link_libraries(win_demo)

#if (WIN32)
#    add_definitions(-D_WIN32_WINNT=0x0601)
#endif ()
#
#if (WIN32)
#    set(CMAKE_MFC_FLAG 2)
#    add_definitions(-D_AFXDLL)
#    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mwindows")
#ENDIF ()

